<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "tmall1.area_table".
 *
 * @property integer $uid
 * @property integer $member_uid
 * @property integer $s1_uid
 * @property integer $s2_uid
 * @property integer $s3_uid
 * @property string $consignee
 * @property string $s1
 * @property string $s2
 * @property string $s3
 * @property string $address
 * @property string $zipcode
 * @property string $cell
 * @property string $tel1
 * @property string $tel2
 * @property string $tel3
 * @property string $order_email
 * @property integer $is_default
 * @property integer $addtime
 */
class AreaTable extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tmall1.area_table';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [

        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'uid' => 'Uid',
            'name' => '名称',
            'parent_id' => '上级uid',
            'layer' => '层次',
            'q_index' => '索引',
            'train' => '排序',
            'addtime' => '添加时间',
            'updatetime' => '更新时间',
            'zip' => '邮编',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\MemberAddressQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\MemberAddressQuery(get_called_class());
    }
}
